package com.shanling.shanlingcontroller.http;

/**
 * Created by sinrow on 2019/1/16 0016.
 */

public class BaseResult<T> {

    private String errorCode;
    private String msg;
    private T data;
    public String getErrCode() {
        return errorCode;
    }
    public void setErrCode(String errCode) {
        this.errorCode = errCode;
    }
    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }
    public boolean hasSuccess() {
        return errorCode.equals("0000");
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
